package com.ruoyi.user.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.remoting.RemoteConnectFailureException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteCouponService", value = "ruoyi-userCoupon", fallbackFactory = RemoteConnectFailureException.class)
public interface RemoteCouponService {

    @GetMapping(value =  "/userCoupon/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);




};
